package jin.chen.MultiThreadController;

import org.junit.Test;

public class TestOrderThread {
    public static void main(String[] args) throws InterruptedException{
//        OrderThread ot1 = new OrderThread("T1");
//        OrderThread ot2 = new OrderThread("T2");
//        OrderThread ot3 = new OrderThread("T3");
//        Thread t1 = new Thread(ot1);
//        Thread t2 = new Thread(ot2);
//        Thread t3= new Thread(ot3);
//        t1.start();
//        t2.start();
//        t3.start();

        ThreadTest t1 = new ThreadTest("t1");
        ThreadTest t2 = new ThreadTest("t2");
        ThreadTest t3 = new ThreadTest("t3");
        t1.start();
        t2.start();
        t2.join(100);
        t3.start();
    }
    @Test
    public void test01(){

    }
}

